package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 家政服务对象 housekeeping
 *
 * @author Wubk
 * @date 2022-05-22
 */
@ApiModel("家政服务对象")
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class Housekeeping implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(name = "id", value = "家政服务id", dataType = "Long")
    private Long id;

    /** 海报 */
    @Excel(name = "海报")
    @ApiModelProperty(name = "img", value = "海报", dataType = "String")
    private String img;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(name = "name",value = "名称",dataType = "String")
    private String name;

    /** 分类 */
    @Excel(name = "分类")
    @ApiModelProperty(name = "type",value = "分类",dataType = "String")
    private String type;

    /** 积分 */
    @Excel(name = "积分")
    @ApiModelProperty(name = "integral",value = "积分",dataType = "Long")
    private Long integral;

    /** 金额 */
    @Excel(name = "金额")
    @ApiModelProperty(name = "money",value = "金额",dataType = "BigDecimal")
    private BigDecimal money;

    /** 服务详情 */
    @Excel(name = "服务详情")
    @ApiModelProperty(name = "detail",value = "服务详情",dataType = "String")
    private String detail;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(name = "status",value = "状态",dataType = "String")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy",value = "创建人",dataType = "String")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间", dataType = "Date", notes = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy",value = "更新人",dataType = "String")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime",value = "更新时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date updatedTime;
}
